import { createHashRouter, RouterProvider, Navigate } from "react-router-dom";
import { lazy } from "react";
import lazyLoad from "@/components/lazyload/lazyload";
import ProtectedRoute from "@/components/protectedRoute/protectedRoute";
import { routes } from "@/config/routes";

const router = createHashRouter(routes);
export default function Router() {
  return RouterProvider({ router });
}
